﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace MusicService
{
    [ServiceContract]
    interface ITrackService
    {
        [OperationContract]
        bool addTrack(string songID, string trackURL, DateTime createDate, long totalPlay);

        [OperationContract]
        bool removeTrack(string trackID);

        [OperationContract]
        bool updateTrack(string trackID, string songID, string trackURL, DateTime createDate, long totalPlay);

        [OperationContract]
        List<Track> getAllTrack();

        [OperationContract]
        Track getTrackByTrackID(string trackID);
    }
}
